/*
* Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*/

#ifndef SAHREDMEMORY_H
#define SAHREDMEMORY_H

#include <QtCore/QObject>

class SharedMemoryPrivate;

class SharedMemory : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY(SharedMemory)
    Q_DECLARE_PRIVATE(SharedMemory)
    Q_PROPERTY(bool modified READ isModified)
    Q_PROPERTY(QString message READ message)

public:
    explicit SharedMemory(QObject *parent = 0);
    virtual ~SharedMemory();

    Q_INVOKABLE bool isModified();
    Q_INVOKABLE QByteArray message();

Q_SIGNALS:
    void error(int error);

private:
    SharedMemoryPrivate *d_ptr;
};

#endif // SAHREDMEMORY_H
